package com.yanglanting.disk.spring.util;

import org.springframework.util.DigestUtils;

public final class Md5Util {
    private Md5Util(){}

    private static final String  passwdKey = "abc123456abc";

    public static String encode(String rawPassword){
        return  DigestUtils.md5DigestAsHex((rawPassword + passwdKey).getBytes());
    }

    public static void main(String[] args) {
        System.out.printf("password:" + encode("123456"));
    }




}
